package com.freak.wanandroid.model.home.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.freak.wanandroid.R;
import com.freak.wanandroid.bean.SystemClassChildrenEntity;

import java.util.List;

/**
 * @author: freak
 * @date: 2022/9/18
 */
public class SpecialAdapter extends BaseQuickAdapter<SystemClassChildrenEntity, BaseViewHolder> {


    public SpecialAdapter(int layoutResId, @Nullable List<SystemClassChildrenEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, SystemClassChildrenEntity item) {
        helper.setText(R.id.subscriptionName, item.getName());
        helper.addOnClickListener(R.id.imageViewAdd);
    }
}
